package spring.pojo;

import org.springframework.stereotype.Component;

@Component
public class Dept {
    String name="血汗工程";
    public void work(){
        System.out.println("办公室是个好地方!");
    }

    @Override
    public String toString() {
        return "Dept{" +
                "name='" + name + '\'' +
                '}';
    }
}
